﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace DetectWebApi.Models.DamageBuilding
{
    /// <summary>
    /// 损坏总结文档
    /// </summary>
    public class DamagedSummaryDocument
    {
        /// <summary>
        /// 建筑ID
        /// </summary>
        [BsonElement("BuildingId")]
        [BsonRepresentation(BsonType.ObjectId)]
        public ObjectId BuildingId { set; get; }

        /// <summary>
        /// 原始图片URL
        /// </summary>
        [BsonElement("OriginImgUrl")]
        [BsonRepresentation(BsonType.String)]
        public string OriginImgUrl { set; get; }
        
        /// <summary>
        /// 检测图片URL
        /// </summary>
        [BsonElement("DetectResultImgUrl")]
        [BsonRepresentation(BsonType.String)]
        public string DetectResultImgUrl { set; get; }

        /// <summary>
        /// 建筑材料
        /// </summary>
        [BsonElement("BuildingMaterial")]
        [BsonRepresentation(BsonType.String)]
        public string BuildingMaterial { set; get; }


        public DamagedSummaryDocument(ObjectId buildingId,string originImgUrl,string detectResultImgUrl, string buildingMaterial)
        {
            this.BuildingId = buildingId;
            this.OriginImgUrl = originImgUrl;
            this.DetectResultImgUrl = detectResultImgUrl;
            this.BuildingMaterial = buildingMaterial;
        }






    }
}
